SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 40874: "Can't start the application" error might occur when attempting to open Microsoft Excel inside of another Microsoft Office application

DetailsAboutRate It

The following error might occur when you attempt to open Microsoft Excel when inserted into another Microsoft Office application such as Microsoft Word:

image label

This error will most likely occur when you have another Microsoft Excel session open at the same time that you are attempting to open the Microsoft Excel data embedded in the Microsoft Office application. Even if you have the configuration option LoadWhenEmbedded set to false, the error still occurs because Microsoft Excel is already open and the initial check will not rerun to see if the SAS® Add-In for Microsoft Office should load or not.

To circumvent this problem with the SAS Add-In 2.1 or 4.2, use one of the following methods:

  • Make sure the first occurrence of Microsoft Excel is closed before you attempt to open the embedded Microsoft Excel. This circumvention works only when the LoadWhenEmbedded configuration option is set to false in the SAS.OfficeAddin.dll.config file, as shown below:

  • <add key="LoadWhenEmbedded" value="false"/>
    
  • Add the following configuration option to the SAS.OfficeAddin.dll.config file:

  • <add key="ForceGarbageCollection" value="true"/>
    

    Note: If the SAS.OfficeAddin.dll.config file does not exist in the SAS Add-In for Microsoft Office installation directory, then you can create it and add the following lines with the key configuration options:

    <configuration>
          <assemblySettings>
              <add key="LoadWhenEmbedded" value="false"/>
              <add key="ForceGarbageCollection" value="true"/>
          </assemblySettings>
    </configuration>
    

With the SAS Add-In 4.3, you must disable the SAS Add-In in your first Microsoft Excel session before you can open the other Microsoft Office application.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft Windows 2000 Advanced Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Server2.19.1 TS1M3 SP4
Microsoft Windows 2000 Professional2.19.1 TS1M3 SP4
Microsoft Windows NT Workstation2.19.1 TS1M3 SP4
Windows Vista2.15.19.1 TS1M3 SP49.3 TS1M0
Microsoft Windows XP Professional2.15.19.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Standard Edition2.15.19.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition2.15.19.1 TS1M3 SP49.3 TS1M0
Windows Vista for x642.15.19.1 TS1M3 SP49.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition2.15.19.1 TS1M3 SP49.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.